package com.jsnj33.pdaproject.base;

import android.app.Activity;
import android.text.TextUtils;

import com.jsnj33.pdaproject.constant.Constants;
import com.jsnj33.pdaproject.utils.SharedpreferencesHelp;

/**
 * Created by Jing on 2019/4/28.
 */

public class BaseActivity extends Activity {

    @Override
    protected void onStart() {
        super.onStart();
        if (TextUtils.isEmpty(Constants.BASEURL)) {
            Constants.setBaseUrl(SharedpreferencesHelp.getHttpUrl(this));
        }
    }
}
